package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("满意度常规报告关联表")
@Entity
@Table(name = "customer_regular_report")
public class CustomerRegularReport extends BaseEntity {

    @ApiModelProperty("常规服务报告")
    private StationReport regularReport;

    @ApiModelProperty("填写满意度报告的人")
    private User contactUser;

    @ApiModelProperty("满意度报告")
    private StationReport customerReport;

    @ApiModelProperty("是否填写了满意度报告")
    private boolean type = false;

    @ApiModelProperty("满意度报告分数")
    private String score;

    @ApiModelProperty("满意度报告总分类型，1：满分；2：60分以上；3：60分及以下")
    private Integer scoreType;

    @ApiModelProperty("是否发送过推送")
    private boolean sended = false;

    @ApiModelProperty("处理结果")
    private String manageNote;

    @ApiModelProperty("是否处理")
    private boolean managed = false;

    @ApiModelProperty("操作人")
    private User manageUser;

    @ManyToOne
    @JoinColumn(name = "regular_report_id")
    public StationReport getRegularReport() {
        return regularReport;
    }

    public void setRegularReport(StationReport regularReport) {
        this.regularReport = regularReport;
    }

    @ManyToOne
    @JoinColumn(name = "user_id")
    public User getContactUser() {
        return contactUser;
    }

    public void setContactUser(User contactUser) {
        this.contactUser = contactUser;
    }

    @ManyToOne
    @JoinColumn(name = "customer_report_id")
    public StationReport getCustomerReport() {
        return customerReport;
    }

    public void setCustomerReport(StationReport customerReport) {
        this.customerReport = customerReport;
    }

    @Column(name = "type")
    public boolean isType() {
        return type;
    }

    public void setType(boolean type) {
        this.type = type;
    }

    @Column(name = "score")
    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    @Column(name = "sended")
    public boolean isSended() {
        return sended;
    }

    public void setSended(boolean sended) {
        this.sended = sended;
    }

    @Column(name = "manage_note")
    public String getManageNote() {
        return manageNote;
    }

    public void setManageNote(String manageNote) {
        this.manageNote = manageNote;
    }

    @Column(name = "managed")
    public boolean isManaged() {
        return managed;
    }

    public void setManaged(boolean managed) {
        this.managed = managed;
    }

    @ManyToOne
    @JoinColumn(name = "manage_user_id")
    public User getManageUser() {
        return manageUser;
    }

    public void setManageUser(User manageUser) {
        this.manageUser = manageUser;
    }

    @Column(name = "score_type")
    public Integer getScoreType() {
        return scoreType;
    }

    public void setScoreType(Integer scoreType) {
        this.scoreType = scoreType;
    }
}
